how to implement insertion sort in c